package com.sky.mapper;

import com.sky.dto.GoodsSalesDTO;
import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface ReportMapper {
    Double turnover(@Param("begin") LocalDateTime begin,@Param("end") LocalDateTime end,@Param("status") Integer status);

    Integer totaluser(@Param("end")LocalDateTime end);

    Integer newUser(@Param("begin") LocalDateTime beginTime,@Param("end") LocalDateTime endTime);

    Integer OrderCount(@Param("begin") LocalDateTime beginTime, @Param("end") LocalDateTime endTime,@Param("status") Integer status);

    List<Long> getOrder(@Param("begin") LocalDateTime beginTime, @Param("end") LocalDateTime endTime,@Param("status") Integer status);

    List<GoodsSalesDTO> salesTop10(@Param("orderIds") List<Long> orderIds);
}
